package com.das.mechanic_base.bean.siveprocess;

import com.das.mechanic_base.widget.ProcessConverter;
import com.das.mechanic_base.widget.StringConverter;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;
import java.util.List;

/**
 * 作者：zhanglei on 2020-03-19 16:49
 * <p>
 * 邮箱：916256628@qq.com
 */
@Entity
public class SiveReportBean implements Serializable {
    @Id(autoincrement = true)
    private Long id;

    private String currentId;

    private boolean answered;

    private boolean standardOrNot;

    private String name;

    private String sn;

    private long totalPath;

    //总共几道题
    private long procedureAmount;

    //回答了几道题
    private long answerCount;

    @Convert(converter = StringConverter.class, columnType = String.class)
    private List<String> techanicsSnList;

    //每个项目里面的所有图片
    @Convert(converter = ProcessConverter.class, columnType = String.class)
    private List<SiveProBean> siveProBeanList;

    @Generated(hash = 653389396)
    public SiveReportBean(Long id, String currentId, boolean answered,
            boolean standardOrNot, String name, String sn, long totalPath,
            long procedureAmount, long answerCount, List<String> techanicsSnList,
            List<SiveProBean> siveProBeanList) {
        this.id = id;
        this.currentId = currentId;
        this.answered = answered;
        this.standardOrNot = standardOrNot;
        this.name = name;
        this.sn = sn;
        this.totalPath = totalPath;
        this.procedureAmount = procedureAmount;
        this.answerCount = answerCount;
        this.techanicsSnList = techanicsSnList;
        this.siveProBeanList = siveProBeanList;
    }

    @Generated(hash = 450481479)
    public SiveReportBean() {
    }

    @Override
    public String toString() {
        return "{" +
                "\"id\":" + id +
                ", \"currentId\":\'" + currentId + "\'" +
                ", \"answered\":" + answered +
                ", \"standardOrNot\":" + standardOrNot +
                ", \"name\":\'" + name + "\'" +
                ", \"sn\":\'" + sn + "\'" +
                ", \"totalPath\":" + totalPath +
                ", \"procedureAmount\":" + procedureAmount +
                ", \"answerCount\":" + answerCount +
                ", \"techanicsSnList\":" + techanicsSnList +
                ", \"siveProBeanList\":" + siveProBeanList +
                '}';
    }

    public List<SiveProBean> getSiveProBeanList() {
        return this.siveProBeanList;
    }

    public void setSiveProBeanList(List<SiveProBean> siveProBeanList) {
        this.siveProBeanList = siveProBeanList;
    }

    public List<String> getTechanicsSnList() {
        return this.techanicsSnList;
    }

    public void setTechanicsSnList(List<String> techanicsSnList) {
        this.techanicsSnList = techanicsSnList;
    }

    public long getAnswerCount() {
        return this.answerCount;
    }

    public void setAnswerCount(long answerCount) {
        this.answerCount = answerCount;
    }

    public long getProcedureAmount() {
        return this.procedureAmount;
    }

    public void setProcedureAmount(long procedureAmount) {
        this.procedureAmount = procedureAmount;
    }

    public long getTotalPath() {
        return this.totalPath;
    }

    public void setTotalPath(long totalPath) {
        this.totalPath = totalPath;
    }

    public String getSn() {
        return this.sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean getStandardOrNot() {
        return this.standardOrNot;
    }

    public void setStandardOrNot(boolean standardOrNot) {
        this.standardOrNot = standardOrNot;
    }

    public boolean getAnswered() {
        return this.answered;
    }

    public void setAnswered(boolean answered) {
        this.answered = answered;
    }

    public String getCurrentId() {
        return this.currentId;
    }

    public void setCurrentId(String currentId) {
        this.currentId = currentId;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
